package com.gosophia.conferenceManagement.notification.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.Assert;

import com.gosophia.conferenceManagement.common.service.impl.ConferenceHandleServiceImpl;
import com.gosophia.conferenceManagement.notification.dao.NotificationJobDataDao;
import com.gosophia.conferenceManagement.notification.entity.NotificationJobData;
import com.gosophia.conferenceManagement.notification.service.NotificationService;
/**
 * 通知service实现
 * @author gaoweiguang
 * @since  2011-3-25
 *  Copyright (c) 2010 Gosophia corporation All Rights Reserved
 */
@Transactional
@Service("notificationService")
public class NotificationServiceImpl extends ConferenceHandleServiceImpl implements NotificationService {

    @Autowired
    private NotificationJobDataDao notificationJobDataDao;

	@Override
	public void addNotificationJobData(NotificationJobData notificationJobData) {
		 Assert.isTrue(notificationJobData != null, "实体不能为null");
	     Assert.isTrue(notificationJobData.getJobDataId() == null, "实体Id必须为null");
	     notificationJobDataDao.save(notificationJobData);

	}



}
